package org.skywalker.postbank

class MetaData {
	String name
	String dataType
	String enumList
	Boolean notNull
	
    static constraints = {
		name(blank:false, nullable:false, maxSize:250, unique:true)
		dataType(nullable:false, inList:['String', 'int', 'number', 'enum'])
		enumList(blank:true, nullable:true)
		notNull(nullable:true, default:false)
    }
	
	String toString(){
		name
	}
}
